 $(function() {
     var mySwiper = new Swiper('.swiper-container', {
         //触控模仿 
         direction: 'horizontal',
         //自动播放
         autoplay: 2000,
         //响应速度
         speed: 400,
         //图片间隔
         spaceBetween: 0,
         //循环模式
         loop: true,
         // 如果需要分页器
         pagination: '.swiper-pagination',
         // 如果需要前进后退按钮
         nextButton: '.swiper-button-next',
         prevButton: '.swiper-button-prev'
     });
 });
